package com.winter.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.Company;

@Repository
public interface CompanyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Company record);

    int insertSelective(Company record);

    Company selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Company record);

    int updateByPrimaryKeyWithBLOBs(Company record);

    int updateByPrimaryKey(Company record);
    
    /**\
     * 职场列表查询
     * @return
     */
    List<Company> queryPage (@Param("companyreleaseId") String companyreleaseId,@Param("orderBy") String orderBy, @Param("timeStart")Date timeStart, @Param("timeEnd")Date timeEnd, @Param("companyIndustry")String companyIndustry);
    
    /*
     * 公司圈列表
     */
    List<Company> icompanyCardList(@Param("orderBy") String orderBy,@Param("comClass") String comClass,@Param("comSubClass")String comSubClass,@Param("key")String key,@Param("companyIndustry")String companyIndustry);
    
    /*
     * 公司圈分布的资产信息
     */
    String getCompanyId(@Param("createUser") String createUser);
    
}